package com.qfedu.springboot1.entity;

import com.fasterxml.jackson.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 千锋Java,为你而生！
 *
 * @Author: Feri
 * @Date:2024/10/31 16:19
 * @Modified:
 */
@Data
@NoArgsConstructor
public class Question {
    @JsonSetter("q")
    private String question;
    @JsonSetter("a")
    private String optionA;
    @JsonSetter("b")
    private String optionB;
    private String answer;
    @JsonSetter("ia")
    private String answerA;
    @JsonSetter("ib")
    private String answerB;

    public Question(String question, String optionA, String optionB, String answerA, String answerB) {
        this.question = question;
        this.optionA = optionA;
        this.optionB = optionB;
        this.answerA = answerA;
        this.answerB = answerB;
    }
}
